﻿<%@page contentType="text/vnd.wap.wml; charset=utf-8"%>
<%@ page import="java.io.*"%>
<%@ page import="java.sql.*"%>
<%@ page import="java.util.*"%>
<%@ page import="java.text.*"%>
<%@ page import="common.*"%>
<%@ page import="wapbean.*"%>

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org//DTD//wml_1.1.xml">
<wml>
<%
    	String purl = (String) session.getAttribute("p");
    	Map map1=new HashMap();
    	Map map2=new HashMap();
	    Vector ver = new Vector();   
	    Vector ver1 = new Vector(); 
	    WapcategoryFactory Fac1 = new WapcategoryFactory();
	    SecondUrl second=new SecondUrl();
	%> 
<card id="card1" title="乐游-手机游戏下载">
<p align="left">

 <img src="/game3.0/img/logo.png" />
	<br />
	<%      
	          map1=second.getvauleTitle(purl);
	           for (Iterator iter1 = map1.keySet().iterator(); iter1.hasNext();) {
	            String  element1 = (String)iter1.next();
	    		Allbean  bean1=(Allbean)map1.get(element1);
    			String Eva_CategoryID=bean1.getEva_CategoryID();
    			 String CategoryID=bean1.getCategoryID();
    			 String mobileModelId=bean1.getMobileModelID();
    			 String ProviderID=bean1.getProviderID();
    			 System.out.println("id=*===="+bean1.getCategoryID());
    			System.out.println("mobileModelId=*===="+mobileModelId);
 //   			Allbean allbea = second.getvaules3(mobileModelId,ProviderID); 
//	    		if(allbea== null || allbea.equals("")){
//	    				 }
//	    		 else{
//	                   map2.put(allbea.getCategoryID(),allbea);  
	    						 	    		  
//	    						   }
    			
    			}
    			 for (Iterator iter2 = map2.keySet().iterator(); iter2.hasNext();) {
	    							    String  element2 = (String)iter2.next();
	    							   Allbean bean2=(Allbean)map2.get(element2);
 						 	    	String CategoryId=bean2.getCategoryID();
 						 	    	System.out.println("element2=*===="+element2);
 						 	    	ver.add(bean2);
	    							    }
    	      if (ver != null && !ver.isEmpty()) {  
 		      int m = ver.size();
 		      for (int i = m-1; i >= 0; i--) {
 			  Allbean bea = (Allbean) ver.elementAt(i);
 			  if(bea.getCategoryTypeID().equals("2")){
 			  Vector ver5 = Fac1.getWapcategoryMobilemodel(bea.getCategoryID());
                 if(ver5!=null){
                  int g=ver5.size(); 
            
                   for(int s=0;s<g;s++){
                   Allbean bea5=(Allbean)ver5.elementAt(s);  
    			 if(s<g-1){
                   %>
                    <a href="/game3.0/wappages/<%=bea5.getActionPage()%>.jsp?CategoryID=<%=bea5.getCategoryID()%>&amp;MobileModelID=<%=bea5.getMobileModelID()%>&amp;ProviderID=<%=bea5.getProviderID()%>"> <%out.print(bea5.getTitle());%> </a>|
                   <%
                  }else{
                   %>
                    <a href="/game3.0/wappages/<%=bea5.getActionPage()%>.jsp?CategoryID=<%=bea5.getCategoryID()%>&amp;MobileModelID=<%=bea5.getMobileModelID()%>&amp;ProviderID=<%=bea5.getProviderID()%>"> <%out.print(bea5.getTitle());%> </a>
                   <%
                  }
                   if(s==ver5.size()-1){
                     out.println("<br/>");    
                     }
	    	} 
	    	}
	    	}
	    	else if(bea.getCategoryTypeID().equals("14")){
 		     Vector ver5 = Fac1.getWapcategoryMobilemodel(bea.getCategoryID());
            if(ver5!=null){
                  int g=ver5.size(); 
            
                   for(int s=0;s<g;s++){
                   Allbean bea5=(Allbean)ver5.elementAt(s);
                   %>
                    <a href="/game3.0/wappages/<%=bea5.getActionPage()%>.jsp?CategoryID=<%=bea5.getCategoryID()%>&amp;MobileModelID=<%=bea5.getMobileModelID()%>&amp;ProviderID=<%=bea5.getProviderID()%>"> <%out.print(bea5.getTitle());%> </a>*
                   <% 
                   if(s==ver5.size()-1){
                     out.println("<br/>");    
                     } 
                    }
                   }
		 }else if(bea.getCategoryTypeID().equals("15")){
 		     Vector ver5 = Fac1.getWapcategoryMobilemodel(bea.getCategoryID());
            if(ver5!=null){
                  int g=ver5.size(); 
            
                   for(int s=0;s<g;s++){
                   Allbean bea5=(Allbean)ver5.elementAt(s);
                   %>
                    <a href="/game3.0/wappages/<%=bea5.getActionPage()%>.jsp?CategoryID=<%=bea5.getCategoryID()%>&amp;MobileModelID=<%=bea5.getMobileModelID()%>&amp;ProviderID=<%=bea5.getProviderID()%>"> <%out.print(bea5.getTitle());%> </a>.
                   <%
                   if(s==ver5.size()-1){
                     out.println("<br/>");    
                     }
                  }
               }
	        }else if (bea.getCategoryTypeID().equals("5")) {
 %> <a
	href="<%=bea.getActionPage()%>"> <%
 out.println(bea.getTitle());
 %> </a> <%
 		}
	  else if (bea.getCategoryTypeID().equals("12")) {
 %> <a
	href="/game3.0/wappages/gameList.jsp?CategoryID=<%=bea.getCategoryID()%>&amp;MobileModelID=<%=bea.getMobileModelID()%>&amp;ProviderID=<%=bea.getProviderID()%>&amp;purl=<%=purl%>">
		<%
		out.println(bea.getTitle());
		%> </a> <%
 }     
	        
	        else {%>
	        <% out.println(bea.getTitle());%><br /> 
	     <%   }
	               
	                 Vector ver4;
   	               if(bea.getCategoryTypeID().equals("1")){
					  ver4 = Fac1.getMobilemodelContent(bea.getCategoryID());
   	                if(ver4!=null){
                    int a=ver4.size(); 
              
                    for(int t=0;t<a;t++){
                    Allbean bea4=(Allbean)ver4.elementAt(t);
                   
   	    %>
   	     ★<a href="/game3.0/wappages/contentview.jsp?CategoryID=<%=bea4.getCategoryID()%>&amp;MobileModelID=<%=bea4.getMobileModelID()%>&amp;ProviderID=<%=bea4.getProviderID()%>&amp;contentId=<%=bea4.getContentId()%>&amp;gamename=<%=bea4.getTitle()%>&amp;ContentResourceID=<%=bea4.getContentResourceID()%>"><%out.println(bea4.getTitle());%> </a><br />
	     <%}}}}} %> 
	   
	   
	  	
	【<a href="wappages/help.jsp">客服咨询</a>】  
	<br />  						 	    
	wap.leyoou.cn
	
	</p>  
</card>
</wml>